package router

import (
	"github.com/gin-gonic/gin"
	"seat-service/api"
)

type messageStudentRouter struct {
}

func (m *messageStudentRouter) studentMessageRouterGroup(Router *gin.RouterGroup) *gin.RouterGroup {
	studentMessageApi := api.MessageApi{}
	studentMessage := Router.Group("/studentMessage")
	{
		studentMessage.POST("/getAll/message", studentMessageApi.StudentGetAllMessage)  //学生查看所有官方通告信息
		studentMessage.GET("/getMessage/byId", studentMessageApi.QueryAnnouncementById) //根据id查看单个信息内容
		studentMessage.POST("/getAll/user", studentMessageApi.StudentUserMessage)       //查看所有用户类别须知
	}
	return studentMessage
}
